<template>
    <div>
        <router-view ></router-view>
        <!-- <a-table :data-source="image_list" :row-key="(record: any) => record.menu_id">
            <a-table-column key="user_id" title="名称" data-index="user_id">
                <template #default="{ record }">
                    <div>{{ record.user_id }}</div>
                </template>
            </a-table-column>
            <a-table-column key="img_url" title="图片" data-index="img_url">
                <template #default="{ record }">
                    <div>
                        <a-image :width="200" :src="record.img_url" :preview="{  src: record.img_url,   }" />
                    </div>
                </template>
            </a-table-column>
        </a-table> -->
    </div>
</template>

<script setup lang="ts">
import { onMounted, ref } from "vue";
import { corsApi } from "../../request/http";


onMounted(() => {
    get_list()
})
const columns = ref([{

}])
// 获取图片列表
const image_list = ref<string[]>([])
const get_list = async () => {
    const res = await corsApi('images_lists', 'get', {})
    console.log(res);
    if (res.data.status === 1) {
        image_list.value = res.data.result.list
    }

}

</script>

<style scoped lang="scss"></style>